﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreCms.Net.Model.ViewModels.YiLianYun
{
    /// <summary>
    /// 易联云授权返回数据
    /// </summary>
    public class YiLianYunAuthResult
    {
        /// <summary>
        /// 返回状态码
        /// </summary>
        public string error { get; set; }
        /// <summary>
        /// 状态码说明
        /// </summary>
        public string error_description { get; set; }

        /// <summary>
        /// 结果集
        /// </summary>
        public Body body { get; set; }

        /// <summary>
        /// 结果集详情
        /// </summary>
        public class Body
        {
            public string access_token { get; set; }
            public string refresh_token { get; set; }
            public object machine_code { get; set; }
            public int expires_in { get; set; }
            public string scope { get; set; }
        }
    } 
    
    /// <summary>
    /// 获取机器在线状态
    /// </summary>
    public class YiLianYunGetPrintStatusResult
    {
        /// <summary>
        /// 返回状态码
        /// </summary>
        public string error { get; set; }
        /// <summary>
        /// 状态码说明
        /// </summary>
        public string error_description { get; set; }

        /// <summary>
        /// 结果集
        /// </summary>
        public Body body { get; set; }

        /// <summary>
        /// 结果集详情
        /// </summary>
        public class Body
        {
            public string state { get; set; }
        }
    }

    /// <summary>
    /// 文本打印返回结果集
    /// </summary>
    public class YiLianYunGetPrintTextResult
    {
        /// <summary>
        /// 返回状态码
        /// </summary>
        public string error { get; set; }
        /// <summary>
        /// 状态码说明
        /// </summary>
        public string error_description { get; set; }

        /// <summary>
        /// 结果集
        /// </summary>
        public Body body { get; set; }

        /// <summary>
        /// 结果集详情
        /// </summary>
        public class Body
        {
            /// <summary>
            /// 订单号
            /// </summary>
            public string id { get; set; }
            public string origin_id { get; set; }
        }
    }

}
